package com.wangdong.mijiqiqi.downloadthhreaddb;

import java.io.Serializable;

/**
 * 作者：wangdong on 2018/11/23 14:50
 * 邮箱：2100520956@qq.com
 */

public class FileInfo implements Serializable {
    private int id;
    private String url;
    private String fileName;
    private int length;
    private int finished;
    public FileInfo(){

    }
    /**
     * @param id 文件id
     *           @param url 文件的下载地址
     *                      @param fileName 文件的名字
     *                                      @param length 文件的大小
     *                                                    @param finished 文件已经完成多少
     */
    public FileInfo(int id, String url, String fileName, int length, int finished) {
        this.id = id;
        this.url = url;
        this.fileName = fileName;
        this.length = length;
        this.finished = finished;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getFinished() {
        return finished;
    }

    public void setFinished(int finished) {
        this.finished = finished;
    }

    @Override
    public String toString() {
        return "FileInfo{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", fileName='" + fileName + '\'' +
                ", length=" + length +
                ", finished=" + finished +
                '}';
    }
}
